<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
    <class name="com.church.db.Music" table="music" catalog="church">
        <id name="id" type="java.lang.Integer">
            <column name="id" />
            <generator class="identity" />
        </id>
        <property name="name" type="string">
            <column name="name" length="45" not-null="true" />
        </property>
        <property name="songSheet" type="string">
            <column name="songSheet" length="45" />
        </property>
        <property name="lyrics" type="string">
            <column name="lyrics" length="45" />
        </property>
        <property name="state" type="string">
            <column name="state" length="45" not-null="true" />
        </property>
        <property name="username" type="string">
            <column name="username" length="45" not-null="true" />
        </property>
    </class>
</hibernate-mapping>
